package com.mioto.ld.module.log.model;

import java.util.Map;

/**
 * @author mioto-qinxj
 * @date 2024/6/18
 * @desc
 */
public enum BizOperationType {

    INSERT("新增","insert data"),
    UPDATE("修改","update data"),
    DETAIL("查看详情","find detail"),
    DELETE("删除","delete data"),
    PAGER("分页查询","find pager"),

    DEVICE_SALE_STATISTIC("设备销量统计","device sale statistic"),
    DEVICE_FAULT_STATISTIC("设备故障统计","device fault statistic"),
    MATERIAL_SALE_STATISTIC("原料销量统计","material sale statistic"),
    ;

    public String getDesc(String language){
        if (language.equals("ch")){
            return this.ch;
        }
        return this.en;
    }

    BizOperationType(String ch,String en){
        this.ch = ch;
        this.en = en;
    }

    private String ch;

    private String en;

}
